package com.qyhl.webtv.module_microvideo.shortvideo.play.comment;


import android.util.Log;

import com.qyhl.webtv.commonlib.entity.microvideo.ShortVideoNewCommentBean;

public class ShortVideoCommentPresenter implements ShortVideoCommentContract.ShortVideoCommentPresenter {
    private ShortVideoCommentModel mModel;
    private ShortVideoCommentContract.ShortVideoCommentView mView;

    ShortVideoCommentPresenter(ShortVideoCommentContract.ShortVideoCommentView mView) {
        this.mView = mView;
        this.mModel = new ShortVideoCommentModel(this);
    }

    @Override
    public void getComment(String workId, String page) {
        mModel.getComment(workId, page);
    }

    @Override
    public void addComment(String workId, String content, String userPhone) {
        mModel.addComment(workId, content, userPhone);
    }

    @Override
    public void setComment(ShortVideoNewCommentBean bean, boolean isMore) {
        mView.setComment(bean, isMore);
    }

    @Override
    public void setCommentError(String msg, boolean isMore) {
        mView.setCommentError(msg, isMore);
    }

    @Override
    public void commentSuccess(String num,String msg) {
        mView.commentSuccess(num,msg);
    }

    @Override
    public void commentError(String msg) {
        mView.commentError(msg);
    }
}
